'''
SHOW TABLES#查询所有数据表
SHOW DATABASES#查询所有数据库
CREATE DATABASE mysql_name#创建名为mysql_name的数据库
'''

from tkinter import *
import tkinter as tk
def register():
	sign = tk.Toplevel()
	sw = sign.winfo_screenwidth()#获取屏幕宽度
	sh = sign.winfo_screenheight()#获取屏幕高度
	x = (sw-300)/2#获取减去程序所占宽度后屏幕一半的宽度
	y = (sh-400)/2#获取减去程序所占高度后屏幕一半的高度
	sign.geometry('+%d+%d'%(x,y))#设置窗口大小和显示位置
	sign.title('注册98k创意运维管理系统')
	Entry(sign,width=20).pack()
def login():
	x = var1.get()
	y = var2.get()
	if x != '':
		if y != '':
			msg = cl.Data_Val(x,y)
			if msg == '登陆成功':
				Label(win,text = msg,fg='green').place(x = 130,y = 170)
			else:
				Label(win,text = msg,fg='red').place(x = 130,y = 170)
		else:
			print('请输入密码')
	else:
		print('请输入账号')
